{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="{:url('staffAdd')}">
        
            <div class="layui-form-item">

                <label for="L_email" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="text-align: left; width:300px;">
                    <select id="community_id" name="community_id" lay-verify="required">
                        <option value="" selected="true">请选择小区</option>
                        {foreach $communitylist as $comm}
                        <option value="{$comm.community_id}">{$comm.community_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="staff_name" class="layui-form-label">
                    <span class="x-red">*</span>员工姓名:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="staff_name" name="staff_name" class="layui-input" style="width:300px;">
                </div>
            </div>
           
            
            
            <div class="layui-form-item">
                <label for="entry_time" class="layui-form-label">
                    <span class="x-red">*</span>入职时间:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="entry_time" name="entry_time" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" readonly="">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="work_on_time" class="layui-form-label">
                    <span class="x-red">*</span>上班时间:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="work_on_time" name="work_on_time" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            <div class="layui-form-item">
                <label for="work_off_time" class="layui-form-label">
                    <span class="x-red">*</span>下班时间:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="work_off_time" name="work_off_time" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                新增员工
            </button>
          </div>
      </form>
    </div>
    

    <script>
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            
            //执行一个laydate实例
            laydate.render({
            elem: '#entry_time' //指定元素
            ,format: 'yyyy-MM-dd HH:mm'
            });

            
        });
        
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })(); 
    </script>
  </body>

</html>